#!/bin/bash

if [ `whoami` != "root" ]; then
    echo "需要以root用户执行"
    exit -1;
fi

echo 离线安装i2c环境-----------------------------------
tar -zxvf i2c-tools-4.3.tar.gz
pushd i2c-tools-4.3
make USE_STATIC_LIB=1
make install
popd
echo 离线安装i2c环境完成-----------------
